macos_recording_session_start
fun macos_recording_session_start(sessionPtr: COpaquePointer, ctx: COpaquePointer?, on_state: CPointer<CFunction<(COpaquePointer?, CPointer<ByteVar>?, Int) -> Unit>>?, on_format: CPointer<CFunction<(COpaquePointer?, CPointer<ByteVar>?, Int) -> Unit>>?, on_audio: CPointer<CFunction<(COpaquePointer?, CPointer<ByteVar>?, Int) -> Unit>>?)
Start recording and stream updates to the provided callbacks.
on_state(ctx, bytes, len) – called whenever the session State changes (bytes = state.encodeToByteArray()). on_audio(ctx, bytes, len) – called per audio frame chunk (bytes = raw audio frame ByteArray from flow).
The callee owns the buffers only during the call; the caller must copy if it needs to retain data.